package crond

import (
	"context"
	"mini-app/config/mysql"
	"mini-app/internal/app/admin/service"
	"mini-app/internal/dao"
)

func onlineEventDraw() {
	records, _ := dao.OnlineEvent{}.List(
		context.Background(),
		mysql.NewDB(),
		"",
		3,
		0, 0,
		0, 0,
	)
	for _, record := range records {
		service.OnlineEvent{}.Draw(context.Background(), record.ID)
	}
}
